class Solution {
public:
    int minimumOperations(vector<int>& nums) {
        int ans=0;
        for(int x:nums)
            if(x%3) ans++;
        return ans;
    }
};